const {
  defineConfig
} = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  devServer: {
    proxy: {
      '/videoui': {
        target: 'https://haokan.baidu.com',
        ws: false,
        changeOrigin: true,
        headers: {
          referer: 'https://haokan.baidu.com/v?vid=203893040482622289&source=1022897c-0-1023778d&pkg=1023778d&ckey=CK1448646945528',
          secFetchDest:'empty',
          secFetchMode:'cors'
        }
      }
    }
  }
})